import Vue from 'vue'

// uni.baseURL = 'http://192.168.3.4:8088/'
// uni.baseURL = 'http://192.168.3.223:8088/'
uni.baseURL = 'http://192.168.3.237:8088'
// uni.baseURL = 'http://192.168.3.4:8088/'
// uni.baseURL = 'http://192.168.3.73:8088/'
// uni.baseURL = 'http://139.155.89.213:8088/'

import qsui from '@/uni_modules/QS-UI/index.js';
Vue.use(qsui)
uni.version = '1.5.2' 
uni.versiontype = false;
uni._systemInfo = uni.getSystemInfoSync();
uni._navbarHeight = uni._systemInfo.statusBarHeight + 44;
uni._commonPadding = uni.$qs.rpxUnit2px('12px');
// 更新顶部底部导航栏设置
uni.$setTabBarStyle = function(type = 'light') {
	if (type == 'black') {
		uni.setTabBarStyle(uni.$blackTabbarConfig);
		uni.setNavigationBarColor(uni.$blackNavbarConfig);
	} else {
		uni.setTabBarStyle(uni.$lightTabbarConfig);
		uni.setNavigationBarColor(uni.$lightNavbarConfig);
	}
}
import App from './App'

// vuex
import store from './store'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'

import mixin from './common/mixin'

Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'
Vue.use(uView)

// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif

Vue.mixin(mixin)

const app = new Vue({
	store,
	...App
})

// 引入请求封装
require('./util/request/index')(app)

app.$mount()
